package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ProjectCompletedMapper;
import com.ruoyi.project.domain.ProjectCompleted;
import com.ruoyi.project.service.IProjectCompletedService;

/**
 * 完成项目Service业务层处理
 * 
 * @author czj
 * @date 2025-01-06
 */
@Service
public class ProjectCompletedServiceImpl implements IProjectCompletedService 
{
    @Autowired
    private ProjectCompletedMapper projectCompletedMapper;

    /**
     * 查询完成项目
     * 
     * @param completionId 完成项目主键
     * @return 完成项目
     */
    @Override
    public ProjectCompleted selectProjectCompletedByCompletionId(Long completionId)
    {
        return projectCompletedMapper.selectProjectCompletedByCompletionId(completionId);
    }

    /**
     * 查询完成项目列表
     * 
     * @param projectCompleted 完成项目
     * @return 完成项目
     */
    @Override
    public List<ProjectCompleted> selectProjectCompletedList(ProjectCompleted projectCompleted)
    {
        return projectCompletedMapper.selectProjectCompletedList(projectCompleted);
    }

    /**
     * 新增完成项目
     * 
     * @param projectCompleted 完成项目
     * @return 结果
     */
    @Override
    public int insertProjectCompleted(ProjectCompleted projectCompleted)
    {
        return projectCompletedMapper.insertProjectCompleted(projectCompleted);
    }

    /**
     * 修改完成项目
     * 
     * @param projectCompleted 完成项目
     * @return 结果
     */
    @Override
    public int updateProjectCompleted(ProjectCompleted projectCompleted)
    {
        return projectCompletedMapper.updateProjectCompleted(projectCompleted);
    }

    /**
     * 批量删除完成项目
     * 
     * @param completionIds 需要删除的完成项目主键
     * @return 结果
     */
    @Override
    public int deleteProjectCompletedByCompletionIds(Long[] completionIds)
    {
        return projectCompletedMapper.deleteProjectCompletedByCompletionIds(completionIds);
    }

    /**
     * 删除完成项目信息
     * 
     * @param completionId 完成项目主键
     * @return 结果
     */
    @Override
    public int deleteProjectCompletedByCompletionId(Long completionId)
    {
        return projectCompletedMapper.deleteProjectCompletedByCompletionId(completionId);
    }
}
